package com.im.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 联系人
 *
 * @author yunZhouJiaDi
 */
@Data
@TableName("contact")
@Accessors(chain = true)
public class Contact {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("联系人id")
    private String contactId;

    @ApiModelProperty("发送时间")
    private Date createTime;

    @ApiModelProperty("状态（0:非好友 1:好友 2:已删除好友 3:被好友删除 4:已拉黑好友 5:被好友拉黑）")
    private Integer status;

    @ApiModelProperty("最后更新时间")
    private Date lastUpdateTime;

}
